package com.ys.entity.mall;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TM_SignLog", catalog="Id")
public class TmSignLog extends BaseEntity<TmSignLog> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="UserName", nameJava="userName", typeDataBase="varchar")
	private String userName;
	@YsField(nameDataBase="DeptId", nameJava="deptId", typeDataBase="varchar")
	private String deptId;
	@YsField(nameDataBase="DeptName", nameJava="deptName", typeDataBase="varchar")
	private String deptName;
	@YsField(nameDataBase="PositionId", nameJava="positionId", typeDataBase="varchar")
	private String positionId;
	@YsField(nameDataBase="PositionName", nameJava="positionName", typeDataBase="varchar")
	private String positionName;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TmSignLog setId(Long id) {
		this.id = id;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public TmSignLog setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public String getUserName() {
		return userName;
	}
	public TmSignLog setUserName(String userName) {
		this.userName = userName;
		return this;
	}
	public String getDeptId() {
		return deptId;
	}
	public TmSignLog setDeptId(String deptId) {
		this.deptId = deptId;
		return this;
	}
	public String getDeptName() {
		return deptName;
	}
	public TmSignLog setDeptName(String deptName) {
		this.deptName = deptName;
		return this;
	}
	public String getPositionId() {
		return positionId;
	}
	public TmSignLog setPositionId(String positionId) {
		this.positionId = positionId;
		return this;
	}
	public String getPositionName() {
		return positionName;
	}
	public TmSignLog setPositionName(String positionName) {
		this.positionName = positionName;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TmSignLog setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TmSignLog setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TmSignLog setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TmSignLog setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TmSignLog tmSignLog(
		String userId,
		String userName,
		String deptId,
		String deptName,
		String positionId,
		String positionName,
		String remark,
		Integer status
			) {
		TmSignLog entity = new TmSignLog();
		entity.setUserId(userId);
		entity.setUserName(userName);
		entity.setDeptId(deptId);
		entity.setDeptName(deptName);
		entity.setPositionId(positionId);
		entity.setPositionName(positionName);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}